home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / GX Libraries / GraphicsStateLibrary.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-31  |  1.0 KB  |  46 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        GraphicsStateLibrary.h
  3.  
  4.     Contains:    graphics libraries - graphics state routines
  5.  
  6.     Written by:    Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink, Chris Yerga
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>      1/9/95    JD        First checked in.
  13. */
  14.  
  15. #ifndef __GRAPHICSSTATELIBRARY__
  16. #define __GRAPHICSSTATELIBRARY__
  17.  
  18. #include <GXTypes.h>
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. /* for compatibility with old headers */
  25. #define graphicsStateLibraryIncludes
  26.  
  27. struct graphicsStateRecord {
  28.     gxShape defaultShapes[gxPictureType - 1];
  29. };
  30.  
  31. typedef struct graphicsStateRecord *graphicsState, graphicsStateRecord;
  32.  
  33. extern graphicsState lastGraphicsState;
  34.  
  35. graphicsState NewGraphicsState(void);
  36. void DisposeGraphicsState(graphicsState);
  37. void GetGraphicsState(graphicsState);
  38. void SetGraphicsState(graphicsState);
  39. graphicsState SwapGraphicsState(graphicsState);
  40.  
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44.  
  45. #endif /* __GRAPHICSSTATELIBRARY__ */
  46.